Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: s.documentcontex on the web
~Justin Minluternivu 6.Nov.03 08:45 PM a Web browser
Domino Designer 6.0.1 Windows NT


The Request_Content is filled with fieldname-value pairs. You'll find them as:

Fieldname=value&fieldname2=value2&fieldname3=value3

You will have to parse the values out of the Request_Content. Since you're on ND6, you can use the Split method to separate the values out into an array like:

Dim NameValuePairs As Variant
NameValuePairs = Split(doc.Request_Content(0),"&")

Then, for each of the array members, you'll find the fieldname with StrLeft (using "=") and the value using StrRight (again, using "="). If you want, you can create fields on your DocumentContext:

Forall nv in NameValuePairs
doc.ReplaceItemValue(StrLeft(nv,"="),StrRight(nv,"="))
End Forall

That, unfortunately, creates the fields with text values. You can add handling to the agent to convert the strings to the correct data type to fill the fields, and you can also separate multiple values if you need to (as long as you know ahead of time what the separator should be). You'll also want to make sure that a field is not created for _Click if you need to save the document.




s.documentcontex on the web (~George Minkroz... 6.Nov.03)
. . RE: s.documentcontex on the web (~Yentl Quetkrot... 6.Nov.03)
. . . . RE: s.documentcontex on the web (~George Minkroz... 6.Nov.03)
. . RE: s.documentcontex on the web (~Justin Minlute... 6.Nov.03)
. . . . RE: s.documentcontex on the web (~George Minkroz... 6.Nov.03)
. . . . . . RE: s.documentcontex on the web (~Justin Minlute... 6.Nov.03)
. . . . . . . . RE: s.documentcontex on the web (~George Minkroz... 6.Nov.03)
. . . . . . . . . . RE: s.documentcontex on the web (~George Minkroz... 6.Nov.03)
. . . . . . . . . . RE: s.documentcontex on the web (~Justin Minlute... 6.Nov.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS